package com.test.demo09;

public class test {
    public static void main(String[] args) {
        Teacher t = new Teacher();
//        方法和都是在父类中定义的
        t.name = "张老师";
        t.printName();
        t.work();

    }
}
